package com.whfp.coky.ui.entry

import android.view.View
import com.whfp.coky.databinding.ActivityLoginSelectorBinding
import com.whfp.coky.event.EventMessage
import com.whfp.coky.ui.base.BaseActivity
import com.whfp.coky.ui.entry.vm.LoginSelVM
import com.whfp.coky.ui.task.act.FluorMainAct


class LoginSelectAct : BaseActivity<LoginSelVM, ActivityLoginSelectorBinding>() {

    override fun isStatusBarDarkFont(): Boolean {
        return !super.isStatusBarDarkFont()
    }

    override fun initView() {
        setOnClickListener(
            vBinding.btnReactivate,
            vBinding.llGzrydl,
            vBinding.llZxwl
        )
    }

    override fun initData() {

    }

    override fun onClick(view: View) {
        super.onClick(view)
        when (view) {
            vBinding.btnReactivate -> startActivity(ActivationAct::class.java)
            vBinding.llGzrydl -> startActivity(LoginAct::class.java)
            vBinding.llZxwl -> FluorMainAct.start(this@LoginSelectAct)//toast("跳转zxwl")
        }
        finish()
    }

    override fun handleEvent(msg: EventMessage) {
    }
}